__author__ = 'Robin'
from django import template
from django.conf import settings
import datetime
register = template.Library()
from datiandouweb.properties import Properties

@register.filter(name="i18ntag")
def i18ntag(dict,i18nkey):
    i18=str(i18nkey)##.split('_')
    i18nvalue=str(dict.get(i18,''))
  ##  if(len(i18)>1):
  ##      argvalue=i18[0].split(',')
##        for value in argvalue:
##            print(value)
    return i18nvalue




   # val = i18nvalue.format(i18nvalue,**arg)

